import request from "@/utils/request";

// 获取banner列表
export const getBannerListAPI = (data) => {
  return request({
    url: "/dashboard/bannerList",
    method: "POST",
    data,
  });
};
// 获取banner详情
export const getBannerDetailAPI = (data) => {
  return request({
    url: "/dashboard/bannerDetail",
    method: "POST",
    data,
  });
};
// 获取门店列表
export const getStoreListAPI = (data) => {
  return request({
    url: "/dashboard/listBranch",
    method: "POST",
    data,
  });
};

// 获取门店详情
export const getStoreDetailAPI = (data) => {
  return request({
    url: "/dashboard/branchDetail",
    method: "POST",
    data,
  });
};

// 推荐课程
export const getRecommendCourseAPI = (data) => {
  return request({
    url: "/dashboard/recommendCourse",
    method: "POST",
    data,
  });
};

// 设置城市和门店
export const setCityAndStoreAPI = (data) => {
  return request({
    url: "/dashboard/setCityAndBranch",
    method: "POST",
    data,
  });
};

// 获取老师列表
export const getTeacherListAPI = (data) => {
  return request({
    url: "/dashboard/teacherList",
    method: "POST",
    data,
  });
};

// 获取老师排行榜
export const getTeacherRankAPI = (data) => {
  return request({
    url: "/dashboard/teacherRank",
    method: "POST",
    data,
  });
};

// 获取用户排行榜
export const getUserRankAPI = (data) => {
  return request({
    url: "/dashboard/userRank",
    method: "POST",
    data,
  });
};



